package main

import (
	"flag"
	"fmt"
	"github.com/gin-gonic/gin"
	"net/http"
	"runtime"
)

const (
	defaultPort = ":18080"
)

func main() {
	fmt.Println(runtime.NumCPU())
	gin.DisableConsoleColor()
	var port string
	flag.StringVar(&port, "port", defaultPort, "端口")
	flag.Parse()
	fmt.Println(port)

	/**
	        7个基础类子项目
	        TODO: 接口
	         1. 获取新闻列表
	         2. 获取所有栏目
	         3. 内容列表
	         4. 频道列表
	         5. 查询应用列表
			 6. 机构信息列表
	         7. 查询统计指标列表
	         8. 分页查询数据元列表
	         9. 数据分享列表
			 10. 查询数据集列表
	         11. 考勤列表查询
			 12. 考勤统计分析
			 14. 查询用户轨迹
	 		 15. 查询用户班次
	         16. 查询我的日志列表
	         17. 查询收到的评论列表
	 		 19. 查询我的日志列表      APP
	         20. 查询收到的评论列表    APP
			 21. 查询通知公告列表信息
	         22. 查询下发人手机号
			 23. 工作时长分析
			 24. 考勤情况分析
			 25. 分页查询发放列表
			 26. 分页查询二维码列表
	         27. 码上办事已完成列表   APP
	         28. 码上办事申报类列表   APP
	*/

	r := gin.New() //创建带有没有中间件的路由

	//             子系统1：多级多机构门户系统管理与控制平台

	// 1.获取新闻列表    并发数1600    原地址：http://cqxmsy.cloud/nqkj-portalweb/web/newsController/queryNews
	r.POST("nqkj-portalweb/web/newsController/queryNews", func(c *gin.Context) {
		c.String(http.StatusOK, `{"success":true,"msg":"","obj":{"data":{"total":1,"rows":[{"ids":null,"page":1,"rows":1,"news_id":"7295ac5c935644cabbf008103384ea51","news_title":"2021年市委一号文件聚焦新发展阶段“三农”工作","news_column_code1":"b9ccf8fa7ace48f2b4625e2aeab88a22","news_column_name1":"新闻资讯","news_open_type":1,"news_desc":"近日，市委、市政府正式发布《关于全面推进乡村振兴加快农业农村现代化的实施意见》，明确提出全面推进乡村振兴，加快农业农村现代化。","news_deptname":"重庆市畜牧技术推广总站","news_cuser_name":"张红梅","news_ctime":"2021-03-12","news_url":"http://cqxmsy.cloud/mongo/html/2c08c6ab06bc46a4b1398b53e7c1abc9.html"},"list":[]},"statusCode":"200","code":"0000","desc":"流程正确"}`)
	})

	// 2.获取所有栏目    并发1600 	原地址： http://cqxmsy.cloud/nqkj-portalweb/web/sunNewsController/queryColumnListAll
	r.POST("nqkj-portalweb/web/sunNewsController/queryColumnListAll", func(c *gin.Context) {
		c.String(http.StatusOK, `{"success":true,"msg":"","obj":{"list":[{"page":1,"rows":2,"queryWhere":"","platId":"e39cdff6-ea78-4dc4-ba8f-06e95104a891","column_id":"00f8927544024f5582dcfd805272b24c","pid":"c67b820b28f241bb867b2a1ba1470edd","column_code":"","column_name":"统计分析","is_enable":1,"display_order":0,"display_num":5,"url":"","icon_class":"","img":"","lastupdatetime":"2019-08-16 15:35:43.0","models":"1","childCount":0,"type":"1"},{"page":1,"rows":2,"queryWhere":"","platId":"e39cdff6-ea78-4dc4-ba8f-06e95104a891","column_id":"1a33da47a7a14d5dae2f4b5cadbfa552","pid":"9cf71fddaaf74741a96cbef54676c618","column_code":"","column_name":"按服务部门","is_enable":1,"display_order":0,"display_num":5,"url":"","icon_class":"","img":"","lastupdatetime":"2019-08-16 15:35:43.0","models":"1","childCount":0,"type":"1"}]},"statusCode":"200","code":"0000","desc":"流程正确"}`)
	})

	//          子系统2：机构门户内容管理与控制平台

	// 3. 内容列表      并发400        原地址：http://cqxmsy.cloud/cmsNewsAction!queryNewsPage.action?t=96139042bb484c7abf068575ff2eeb20
	r.GET("cmsNewsAction!queryNewsPage.action", func(c *gin.Context) {
		c.String(http.StatusOK, `{"rows":[{"is_banner":1,"is_hot":0,"is_top":1,"news_column_code1":"609c056e0ccc4fb3ae9abbc727359f83","news_column_code2":"","news_column_name1":"政策法规","news_column_name2":"","news_ctime":"2019-04-08 16:31:00","news_cuser_id":"0a788c6e-1569-4a27-84d9-ad579c4682a0","news_cuser_name":"卓国忠","news_id":"09fe8e3c573d46e08aaaa6574d1d207a","news_open_type":1,"news_status":3,"news_title":"正兴镇开展“五个一”宣传活动","news_type":1,"page":1,"queryWhere":"","rows":15,"view_count":20}],"total":1}`)
	})
	//4. 频道列表    并发400         原地址： http://cqxmsy.cloud/cmsColumnAction!queryColumnTree.action?id=1&t=96139042bb484c7abf068575ff2eeb20
	r.GET("cmsColumnAction!queryColumnTree.action", func(c *gin.Context) {
		c.String(http.StatusOK, `[{"checked":false,"chkDisabled":false,"id":"116af78f9ed64b049e600750f4badcbe","isLeaf":"1","isParent":false,"isfix":"1","name":"扶贫政策","nocheck":false,"open":"false","pId":"","state":"open","type":"channel"},{"checked":false,"chkDisabled":false,"id":"61914c64ad97438ea37f683e879094b2","isLeaf":"1","isParent":false,"isfix":"1","name":"扶贫人物","nocheck":false,"open":"false","pId":"","state":"open","type":"channel"},{"checked":false,"chkDisabled":false,"id":"7408871bbbc143198c383db252ebc783","isLeaf":"1","isParent":false,"isfix":"1","name":"扶贫动态","nocheck":false,"open":"false","pId":"","state":"open","type":"channel"},{"checked":false,"chkDisabled":false,"id":"9b878c4ce5564fdabbdce609182bf238","isLeaf":"1","isParent":false,"isfix":"1","name":"新闻动态","nocheck":false,"open":"false","pId":"","state":"open","type":"channel"},{"checked":false,"chkDisabled":false,"id":"a446763a407d4e3fbfcd6363e979ee3c","isLeaf":"1","isParent":false,"isfix":"1","name":"通知公告","nocheck":false,"open":"false","pId":"","state":"open","type":"channel"},{"checked":false,"chkDisabled":false,"id":"be84fe82640c4292855b0ee286b20b1e","isLeaf":"1","isParent":false,"isfix":"1","name":"政策法规","nocheck":false,"open":"false","pId":"","state":"open","type":"channel"},{"checked":false,"chkDisabled":false,"id":"f497151f74cf4972a007bc2b1ea92192","isLeaf":"1","isParent":false,"isfix":"1","name":"技术指导","nocheck":false,"open":"false","pId":"","state":"open","type":"channel"}]`)
	})

	//       子系统3：统一配置管理与控制平台项目

	// 5. 查询应用列表    并发400     原地址：http://cqxmsy.cloud/applicationAction!queryApplicationList.action?t=96139042bb484c7abf068575ff2eeb20
	r.GET("applicationAction!queryApplicationList.action", func(c *gin.Context) {
		c.String(http.StatusOK, `{"rows":[{"app_depttype":"国家权力机构、农业行业主管机构、农业行业主管机构直属单位、农业企业、农民合作组织、村级行政组织、文化教育、医疗计生、社会治安、农信企业、养殖场","app_icon":"&#xe7b4;","app_id":"884085ff0ffc4c9192fd63c62d465db0","app_key":"shouye","app_name":"首页","app_profession":"农业、林业、渔业、畜牧业、其他","app_sizex":"1","app_sizey":"1","app_status":"1","app_style":"dashboardsetting","app_type_id":"2dd22847-5627-455e-b4d4-7467a1264f93","app_type_name":"业务管理","childcount":0,"page":0,"rows":0,"terminal_type":"1"},{"app_depttype":"国家权力机构、农业行业主管机构、农业行业主管机构直属单位","app_icon":"&#xe8db;","app_id":"ca32a0ca666e40fcaf2d77ccf05df4c7","app_key":"nq4a771c7038422e5b","app_name":"畜牧生产","app_profession":"农业、林业、渔业、畜牧业、其他","app_sizex":"1","app_sizey":"1","app_status":"1","app_style":"dashboardsetting","app_type_id":"2dd22847-5627-455e-b4d4-7467a1264f93","app_type_name":"业务管理","childcount":0,"page":0,"rows":0,"terminal_type":"9"},{"app_depttype":"国家权力机构、农业行业主管机构、农业行业主管机构直属单位、农业企业、农民合作组织、村级行政组织、文化教育、医疗计生、社会治安、农信企业、养殖场","app_icon":"&#xe8eb;","app_id":"fe8d126473974fc2a6d5b7aeb7aa4512","app_key":"nq810fc8607d9e4e17","app_name":"种畜禽管理","app_profession":"农业、林业、渔业、畜牧业、其他","app_sizex":"1","app_sizey":"1","app_status":"1","app_style":"icon-zhongxuqinchang","app_type_id":"2dd22847-5627-455e-b4d4-7467a1264f93","app_type_name":"业务管理","childcount":0,"page":0,"rows":0,"terminal_type":"9"}],"total":3}`)
	})

	//6. 机构信息列表      并发400 原地址：http://cqxmsy.cloud/dictDataAction!queryDictDataTreeNoPlat.action?dict_type_code=profession&t=96139042bb484c7abf068575ff2eeb20
	r.GET("dictDataAction!queryDictDataTreeNoPlat.action", func(c *gin.Context) {
		c.String(http.StatusOK, `[{"attributes":{"dict_type":"8d1da1ba-69fa-469a-9853-b77008e1952e","isfix":"0","dict_type_code":"profession","dict_data_code":"11027","orgid":"0"},"checked":false,"chkDisabled":false,"id":"cbcf4854-a2bf-4ec2-9edb-4fd653ec0a99","isLeaf":"1","isParent":false,"isfix":"1","name":"农业","nocheck":false,"open":false,"state":"open","text":"农业"},{"attributes":{"dict_type":"8d1da1ba-69fa-469a-9853-b77008e1952e","isfix":"0","dict_type_code":"profession","dict_data_code":"11028","orgid":"0"},"checked":false,"chkDisabled":false,"id":"61bb0081-2196-40a5-97c4-13481dc4c0a9","isLeaf":"1","isParent":false,"isfix":"1","name":"林业","nocheck":false,"open":false,"state":"open","text":"林业"},{"attributes":{"dict_type":"8d1da1ba-69fa-469a-9853-b77008e1952e","isfix":"0","dict_type_code":"profession","dict_data_code":"11029","orgid":"0"},"checked":false,"chkDisabled":false,"id":"0938b1ee-ca35-491f-9204-61db4c609ba5","isLeaf":"1","isParent":false,"isfix":"1","name":"渔业","nocheck":false,"open":false,"state":"open","text":"渔业"}]`)
	})

	//        子系统4：数据标准及规范基础能力系统
	// 7. 查询统计指标列表      并发无        原地址： http://cqxmsy.cloud/api/metadata-admin/metaCountIndex/queryIndicatorsList
	r.GET("api/metadata-admin/metaCountIndex/queryIndicatorsList", func(c *gin.Context) {
		c.String(http.StatusOK, `{"code":0,"data":{"records":[{"id":"3f4c0bac045b413e9472609ddcbc24bc","catalogId":"ed4e494a423b40ccb59952f1758334ec","catalogName":"测试","metaName":"验证指标323232","metaIdentifier":"SI20210035","metaStatus":"0","metaType":null,"metaDefine":"验证33","metaUnit":"千克","metaFormula":"1221","createDate":"2021-06-10 10:23:26.0","updateDate":"2021-06-10T02:23:26.000+00:00"},{"id":"b7f1c2b7da0e4bdaa452415cdf47aa41","catalogId":"ed4e494a423b40ccb59952f1758334ec","catalogName":"测试","metaName":"补助标准","metaIdentifier":"SI20210033","metaStatus":"0","metaType":null,"metaDefine":"先打后补政策补助标准","metaUnit":"毫克","metaFormula":"补助标准金额=[年出栏动物数（填写产地检疫头数）*免疫次数1+存栏动物数（种畜禽、奶牛、蛋鸡）*免疫次数2+无害化处理数量*免疫次数3]*免疫剂量*补助标准","createDate":"2021-06-04 17:41:55.0","updateDate":"2021-06-04T09:43:36.000+00:00"},{"id":"8f8d37aceb8b4c50a4584238a736e45a","catalogId":"ed4e494a423b40ccb59952f1758334ec","catalogName":"测试","metaName":"体积","metaIdentifier":"SI20210034","metaStatus":"1","metaType":null,"metaDefine":"验证","metaUnit":"升","metaFormula":"长*宽*高","createDate":"2021-06-07 18:49:29.0","updateDate":"2021-06-07T10:49:30.000+00:00"}],"total":3,"size":10,"current":1,"orders":[],"optimizeCountSql":true,"hitCount":false,"searchCount":true,"pages":1},"msg":"执行成功"}`)
	})

	// 8. 分页查询数据元列表 并发无          原地址： http://cqxmsy.cloud/api/metadata-admin/baseDataMeta/queryDataMetaList
	r.GET("api/metadata-admin/baseDataMeta/queryDataMetaList", func(c *gin.Context) {
		c.String(http.StatusOK, `{"code":0,"data":{"records":[{"id":"2c058ac039e54a47ae5cd4f4f5b242d4","chineseName":"测试数据源2122","chineseSpelling":"ceshishujuyuan2122","englishName":null,"internalIdentifier":"DE20210761","version":"0.1","definition":"测试2121","objectClassWords":null,"characteristicWords":null,"expressionWord":null,"dataType":"number","dataFormat":"n22,22","rangeType":null,"dimensionType":"1","measurementUnit":null,"type":"0","initialAuthorId":"12","initialAuthorName":"234","dateOfApproval":null,"approverId":null,"approverName":null,"dateOfAbolish":null,"abolishAuthorId":null,"abolishAuthorName":null,"abolishReason":null,"rejectReason":null,"catalogId":"f26324def7374eaa89ecc3d90b4bcf48","catalogName":"基础层","createTime":"2021-06-10T02:19:24.000+00:00","updateTime":"2021-06-10T02:19:44.000+00:00","allowValueType":"S1","allowValueTypeName":"","allowValue":"","rangeId":"","rangeName":"","formatStr":"A","formatStrLength":"0,1,2","formatStrValue":"22,22","relationId":null}],"total":75,"size":10,"current":1,"orders":[],"optimizeCountSql":true,"hitCount":false,"searchCount":true,"pages":8},"msg":"执行成功"}`)
	})

	// 子系统5：数据资源管理系统及数据汇交基础能力系统

	// 9.数据分享列表   并发无         原地址： http://cqxmsy.cloud/api/afm-data-converge/dataShare/selectShareList
	r.GET("api/afm-data-converge/dataShare/selectShareList", func(c *gin.Context) {
		c.String(http.StatusOK, `{"code":0,"data":{"records":[{"id":"cf04e646ae444e29b03e217e741ee417","dataId":"50e2c415f7ac4484a8b3a793a5d787b1","orgId":"c09417e3-8c45-4442-84ea-a3e77aac3ca3","orgName":"重庆市畜牧技术推广总站","createTime":null,"lastupdatetime":"2021-06-11 11:46:56","directoryId":null,"recommendStatus":null,"directoryName":"废弃物利用","titleName":"秸秆利用","openStatus":"1","shareUserId":null,"shareUserName":null,"createUser":"甄苗苗","levelCode":null},{"id":"06dcec25fbc24b4095a969209e9212fc","dataId":"50e2c415f7ac4484a8b3a793a5d787b1","orgId":"c09417e3-8c45-4442-84ea-a3e77aac3ca3","orgName":"重庆市畜牧技术推广总站","createTime":null,"lastupdatetime":"2021-04-09 17:05:13","directoryId":null,"recommendStatus":null,"directoryName":"废弃物利用","titleName":"秸秆利用","openStatus":"1","shareUserId":null,"shareUserName":null,"createUser":"甄苗苗","levelCode":null},{"id":"118781fb031a41faa7bfa7309caa133e","dataId":"50e2c415f7ac4484a8b3a793a5d787b1","orgId":"c09417e3-8c45-4442-84ea-a3e77aac3ca3","orgName":"重庆市畜牧技术推广总站","createTime":null,"lastupdatetime":"2021-04-06 16:43:08","directoryId":null,"recommendStatus":null,"directoryName":"废弃物利用","titleName":"秸秆利用","openStatus":"1","shareUserId":null,"shareUserName":null,"createUser":"甄苗苗","levelCode":null},{"id":"e049218ee6a34e3bad3b27f893afff54","dataId":"d5727764d37b48b28da826660de05691","orgId":"c09417e3-8c45-4442-84ea-a3e77aac3ca3","orgName":"重庆市畜牧技术推广总站","createTime":null,"lastupdatetime":"2021-04-01 14:47:17","directoryId":null,"recommendStatus":null,"directoryName":"技术服务","titleName":"一卡两制","openStatus":"1","shareUserId":null,"shareUserName":null,"createUser":"甄苗苗","levelCode":null}],"total":17,"size":10,"current":1,"orders":[],"optimizeCountSql":true,"hitCount":false,"searchCount":true,"pages":2},"msg":"执行成功"}
`)
	})

	// 10. 查询数据集列表 并发无    原地址： http://cqxmsy.cloud/api/metadata-admin/baseDataSet/queryDataSetList
	r.GET("api/metadata-admin/baseDataSet/queryDataSetList", func(c *gin.Context) {
		c.String(http.StatusOK, `{"code":0,"data":{"records":[{"id":"d0cc1dbc47c54f0c9bf138c7a771c5eb","setName":"验证数据集3333","shortName":"","setIdentifier":"DS20210511","keyword":"","setMeaning":"雁阵","taxonomy":"","status":0,"catalogId":"343bba99b903469ab01c9f6c5be51e37","catalogName":"测试1","displayOrder":0,"creatorId":"1fd9e67a-2648-4063-87d9-ca589373c008","creatorName":"代为","createTime":"2021-06-10T02:22:28.000+00:00","updateTime":"2021-06-10T02:22:39.000+00:00","setMetaRelations":null},{"id":"62dccb05183f49248a12d8d1bc84501d","setName":"test","shortName":"","setIdentifier":"DS20210509","keyword":"","setMeaning":"数据的集合","taxonomy":"","status":0,"catalogId":"343bba99b903469ab01c9f6c5be51e37","catalogName":"测试1","displayOrder":0,"creatorId":"13a7fd75a7fa45748ff927fd71563e7d","creatorName":"甄苗苗","createTime":"2021-06-04T09:39:27.000+00:00","updateTime":"2021-06-04T09:39:27.000+00:00","setMetaRelations":null},{"id":"9da0dbea197940e0b1de71155f593c8a","setName":"验证数据集","shortName":"","setIdentifier":"DS20210510","keyword":"","setMeaning":"数据验证3","taxonomy":"","status":1,"catalogId":"343bba99b903469ab01c9f6c5be51e37","catalogName":"测试1","displayOrder":0,"creatorId":"1fd9e67a-2648-4063-87d9-ca589373c008","creatorName":"蒋林峰","createTime":"2021-06-07T10:43:02.000+00:00","updateTime":"2021-06-07T10:44:52.000+00:00","setMetaRelations":null}],"total":3,"size":10,"current":1,"orders":[],"optimizeCountSql":true,"hitCount":false,"searchCount":true,"pages":1},"msg":"执行成功"}`)
	})

	//     子系统6：数基础办公套件-考勤管理

	// 11. 考勤列表查询    并发400    原地址： http://cqxmsy.cloud/attendanceAction!queryAttendanceList.action?t=96139042bb484c7abf068575ff2eeb20
	r.GET("attendanceAction!queryAttendanceList.action", func(c *gin.Context) {
		c.String(http.StatusOK, `{"rows":[{"deptName":"重庆市畜牧技术推广总站","deptid":"c09417e3-8c45-4442-84ea-a3e77aac3ca3","orgid":"c09417e3-8c45-4442-84ea-a3e77aac3ca3","page":1,"queryWhere":"","rows":15,"userName":"李发玉","user_id":"07ea612fa4584796bc1f645bbbdbb097"},{"deptName":"重庆市畜牧技术推广总站","deptid":"c09417e3-8c45-4442-84ea-a3e77aac3ca3","orgid":"c09417e3-8c45-4442-84ea-a3e77aac3ca3","page":1,"queryWhere":"","rows":15,"userName":"杜宜轩","user_id":"0a598b47748343ffa4ee905330701439"},{"deptName":"重庆市畜牧技术推广总站","deptid":"c09417e3-8c45-4442-84ea-a3e77aac3ca3","orgid":"c09417e3-8c45-4442-84ea-a3e77aac3ca3","page":1,"queryWhere":"","rows":15,"userName":"夏云霓","user_id":"24cfce70a7504f90bdbce7ed68a574f2"},{"deptName":"重庆市畜牧技术推广总站","deptid":"c09417e3-8c45-4442-84ea-a3e77aac3ca3","orgid":"c09417e3-8c45-4442-84ea-a3e77aac3ca3","page":1,"queryWhere":"","rows":15,"userName":"刘白琴","user_id":"87e67b68d0344267a2933653bbddeb9e"},{"deptName":"重庆市畜牧技术推广总站","deptid":"c09417e3-8c45-4442-84ea-a3e77aac3ca3","orgid":"c09417e3-8c45-4442-84ea-a3e77aac3ca3","page":1,"queryWhere":"","rows":15,"userName":"贺德华","user_id":"a92d19d1eea84c47b0d7d48c25a9d1a4"}],"total":23}`)
	})
	// 12. 考勤统计分析    并发400   原地址： http://cqxmsy.cloud/workTimeAction!queryWorkTime.action?areacode=50&start_date=2021-06-01&end_date=2021-06-10&t=96139042bb484c7abf068575ff2eeb20
	r.GET("workTimeAction!queryWorkTime.action", func(c *gin.Context) {
		c.String(http.StatusOK, `{"list":[{"workTime":466.79888890,"dataTime":"2021-06-01","allNum":2052},{"workTime":551.31722222,"dataTime":"2021-06-02","allNum":2053},{"workTime":471.16472220,"dataTime":"2021-06-03","allNum":2052},{"workTime":421.81222221,"dataTime":"2021-06-04","allNum":2052},{"workTime":0E-8,"dataTime":"2021-06-05","allNum":243},{"workTime":0E-8,"dataTime":"2021-06-06","allNum":243},{"workTime":456.83638890,"dataTime":"2021-06-07","allNum":2053},{"workTime":425.24027779,"dataTime":"2021-06-08","allNum":2052},{"workTime":475.94111110,"dataTime":"2021-06-09","allNum":2053},{"workTime":454.12361112,"dataTime":"2021-06-10","allNum":2052}]}`)
	})

	//13. 查询用户轨迹     并发1600  原地址： http://cqxmsy.cloud/afm-is-kaoqin-service/noencrypt/signinfo/queryMyTrail
	r.POST("afm-is-kaoqin-service/noencrypt/signinfo/queryMyTrail", func(c *gin.Context) {
		c.String(http.StatusOK, `{"code":"0000","desc":"流程正确","data":[{"longitude":"107.106741","latitude":"29.190149","position_name":"重庆市南川区411省道靠近西苑","class_id":"10998","class_date":"20210621","page_size":0,"trail_id":"8700602","sign_type":"1","ctime":"17:28","day_night":"0","signon_time":"083000","signout_time":"173000","deltaon_time":30,"deltaout_time":30,"is_late":"0","is_early":"0","sign_id":"912518","sign_flag":"2","is_shenshu":"0"}}]}`)
	})
	//14. 查询用户班次     并发1600 原地址： http://cqxmsy.cloud/afm-is-kaoqin-service/noencrypt/signinfo/querySignClssInfo
	r.POST("afm-is-kaoqin-service/noencrypt/signinfo/querySignClssInfo", func(c *gin.Context) {
		c.String(http.StatusOK, `{"code":"0000","desc":"流程正确","data":{"class_id":"10998","class_name":"工作日","day_night":"0","signon_time":"083000","signout_time":"173000","deltaon_time":"30","deltaout_time":"30","trail_interval":"5","signOnFlag":"0","signOutFlag":"0","is_has_class":"1","equList":[{"imei":"ffffffff-a3f8-03a3-0033-c5870033c587"}],"class_date":"20210709"}}`)

	})

	//   子系统7：基础办公套件-工作日志
	// 15. 查询我的日志列表   并发400     原地址：http://cqxmsy.cloud/userWorkLogsAction!queryMeLogPage.action?t=96139042bb484c7abf068575ff2eeb20
	r.GET("userWorkLogsAction!queryMeLogPage.action", func(c *gin.Context) {
		c.String(http.StatusOK, `{"rows":[{"count":4,"createtime":"2021-06-07  17:07:02","deptname":"重庆市畜牧技术推广总站","file_type":"5","id":"5b4c02014e4f41ea9979ebee7964d99f","page":1,"queryWhere":"","rows":15,"type":"0","user_mobile":"13983299105","user_name":"程宏伟","userid":"18366876-88dc-448a-8955-cad08b5fc40c","weeknum":1,"work_deptname":"测试机构,宝宝饲养","work_desc":"测试","work_id":"9e07bf81-1d33-4267-be7a-e333cdbbc4b3","work_name":"学习培训","work_place":"山东省济南市历城区舜泰中路2000号中国工商银行(济南山钢支行)","work_type_name":"日常工作"}],"total":1}`)
	})

	// 16. 查询收到的评论列表     并发400   原地址： http://cqxmsy.cloud/userWorkLogsAction!loadMyReveivedComments.action?t=96139042bb484c7abf068575ff2eeb20
	r.GET("userWorkLogsAction!loadMyReveivedComments.action", func(c *gin.Context) {
		c.String(http.StatusOK, `{"rows":[{"comments":"保持","count":0,"createtime":"2021-06-07 17:12:12","id":"5b4c02014e4f41ea9979ebee7964d99f","page":1,"queryWhere":"","rows":15,"user_name":"高敏","weeknum":1,"work_time":"2021-06-07 17:07:02","work_type_name":"日常工作"},{"comments":"测试","count":0,"createtime":"2021-06-07 20:41:17","id":"5b4c02014e4f41ea9979ebee7964d99f","logopath":"http://12316yun.net/mongo/images/2ede5c4243cd43b4b9f2668b9bb28260.png","page":1,"queryWhere":"","rows":15,"user_name":"蒋林峰","weeknum":1,"work_time":"2021-06-07 17:07:02","work_type_name":"日常工作"},{"comments":"通过","count":0,"createtime":"2021-06-07 17:10:35","id":"5b4c02014e4f41ea9979ebee7964d99f","page":1,"queryWhere":"","rows":15,"user_name":"程宏伟","weeknum":1,"work_time":"2021-06-07 17:07:02","work_type_name":"日常工作"},{"comments":"收到","count":0,"createtime":"2021-06-07 17:29:01","id":"5b4c02014e4f41ea9979ebee7964d99f","page":1,"queryWhere":"","rows":15,"user_name":"程宏伟","weeknum":1,"work_time":"2021-06-07 17:07:02","work_type_name":"日常工作"}],"total":4}`)
	})

	// 17. 查询我的日志列表   APP   并发1600    原地址： http://cqxmsy.cloud/afm-is-rizhi-service/noencrypt/app/log/queryAllMyLogs
	r.POST("afm-is-rizhi-service/noencrypt/app/log/queryAllMyLogs", func(c *gin.Context) {
		c.String(http.StatusOK, `{"code":"050000","desc":"流程正确","data":[{"log_id":"5b4c02014e4f41ea9979ebee7964d99f","log_ctime":"2021-06-07 17:07:02","log_workplace":"山东省济南市历城区舜泰中路2000号中国工商银行(济南山钢支行)","log_workdept":"测试机构宝宝饲养","log_txt":"测试","log_icon":"http://cqxmsy.cloud/mongo/images/c01bdc8835924055ac6926f7b77049ce.jpg","page_index":"961221","work_id":"9e07bf81-1d33-4267-be7a-e333cdbbc4b3","work_name":"学习培训","work_type":"0","work_typename":"日常工作","result":0}]}`)
	})
	//18. 查询收到的评论列表 APP   并发1600     原地址： http://cqxmsy.cloud/afm-is-rizhi-service/noencrypt/app/log/myReveivedCommentsList
	r.POST("afm-is-rizhi-service/noencrypt/app/log/myReveivedCommentsList", func(c *gin.Context) {
		c.String(http.StatusOK, `{"code":"0000","desc":"流程正确","data":{"total":3,"dataList":[{"createtime":"2021-06-07 20:41:17","weeknum":"1","comments":"测试","user_name":"蒋林峰","logopath":"http://12316yun.net/mongo/images/2ede5c4243cd43b4b9f2668b9bb28260.png","logid":"5b4c02014e4f41ea9979ebee7964d99f","work_time":"2021-06-07 17:07:02","id":"3ca9ff193ecd4fbdba4bd16f78bffb53","userid":"1fd9e67a-2648-4063-87d9-ca589373c008","work_type_name":"日常工作","status":"0"}]}}`)
	})

	// 子系统8：基础办公套件-通知公告系统

	// 19. 查询通知公告列表信息  并发400    原地址： http://cqxmsy.cloud/noticeAction!queryNoticeList.action?t=96139042bb484c7abf068575ff2eeb20
	r.POST("noticeAction!queryNoticeList.action", func(c *gin.Context) {
		c.String(http.StatusOK, `{"otherData":{},"rows":[{"children":[],"ctime":"2013-12-30 08:21:16","desc":"27日上午，国务院总理李克强来到天津滨海新区考察。在开发区工商银行，他详细询问银行创新模式，支持实体经济发展、转型升级和企业走出去等情...","edid":"f4b03a27-2cf7-4cbd-be93-397a59577asd","groupid":"395fec11-a7ae-4b97-851f-f742eb7ee61a","htmlpath":"http://12316yun.net/mongo/html/a91a321a11ab11e68868c81f66b92862.html","isHead":0,"is_single":0,"page":1,"queryWhere":"","remove":false,"rows":15,"state":"3","title":"李克强天津调研考察的几个瞬间"}],"total":1}`)
	})
	//20. 查询下发人手机号      并发400    原地址：http://cqxmsy.cloud/msgAssembleSendAction!queryMobile.action?t=96139042bb484c7abf068575ff2eeb20
	r.GET("msgAssembleSendAction!queryMobile.action", func(c *gin.Context) {
		c.String(http.StatusOK, `[{"id":"1","mobile":"13406852145","page":1,"queryWhere":"","rows":15,"task_id":"7c6b89d5-2d9f-46c4-a550-f1c730e438c7"},{"id":"3","mobile":"15510102020","page":1,"queryWhere":"","rows":15,"task_id":"2adce6b9-4441-4cca-877a-a5b4308a66f1"},{"id":"4","mobile":"18688888888","page":1,"queryWhere":"","rows":15,"task_id":"2adce6b9-4441-4cca-877a-a5b4308a66f1"},{"id":"5","mobile":"18688888888","page":1,"queryWhere":"","rows":15,"task_id":"2adce6b9-4441-4cca-877a-a5b4308a66f1"}]`)
	})

	//子系统9：基础办公套件-体系人员监测系统

	//21. 工作时长分析     并发400          原地址： http://cqxmsy.cloud/api/afm-analysis-system/workSupervision/workingTime/50/e39cdff6-ea78-4dc4-ba8f-06e95104a891/c09417e3-8c45-4442-84ea-a3e77aac3ca3
	r.GET("api/afm-analysis-system/workSupervision/workingTime/50/e39cdff6-ea78-4dc4-ba8f-06e95104a891/c09417e3-8c45-4442-84ea-a3e77aac3ca3", func(c *gin.Context) {
		c.String(http.StatusOK, `{"code":0,"msg":"操作成功","data":{"title":"工作时长分析","label":{"name":"时间","unit":"小时","data":["2021-07-02","2021-07-03","2021-07-04","2021-07-05","2021-07-06","2021-07-07","2021-07-08"]},"value":[{"name":"全部人员","unit":"人","data":["48","48","48","48","48","48","48"]},{"name":"在线人员","unit":"人","data":["0","0","0","0","0","0","0"]}]}}`)
	})
	//22. 考勤情况分析    并发400         原地址： http://cqxmsy.cloud/api/afm-analysis-system/systemRegulatory/queryKaoqin/50/e39cdff6-ea78-4dc4-ba8f-06e95104a891/2021-06-02/2021-06-09
	r.GET("api/afm-analysis-system/systemRegulatory/queryKaoqin/50/e39cdff6-ea78-4dc4-ba8f-06e95104a891/2021-06-02/2021-06-09", func(c *gin.Context) {
		c.String(http.StatusOK, `{"code":0,"msg":"操作成功","data":{"title":"考勤情况分析","label":{"name":null,"unit":"人","data":["2021-07-01","2021-07-02","2021-07-03","2021-07-04","2021-07-05","2021-07-06","2021-07-07"]},"value":[{"name":"出勤数","unit":"人","data":[2194,2194,244,244,2195,2192,2193]},{"name":"缺卡数","unit":"人","data":[2231,2232,245,246,2234,2231,2201]},{"name":"迟到数","unit":"人","data":[11,12,1,0,9,6,9]},{"name":"早退数","unit":"人","data":[5,6,0,0,6,4,4]},{"name":"异常数","unit":"人","data":[27,21,2,3,21,29,25]}]}}`)
	})

	//   子系统10：扫码办事系统

	//23. 分页查询发放列表   并发400        原地址：http://cqxmsy.cloud/api/afm-qrcode-scanning/qrcodeGrant/selectGrantAll
	r.GET("api/afm-qrcode-scanning/qrcodeGrant/selectGrantAll", func(c *gin.Context) {
		c.String(http.StatusOK, `{"code":0,"data":{"records":[{"id":"25633ca1eccd22a5c46b81349eb0873d","areaCode":"500127103","areaName":"河边镇","grantNum":3,"certBeginCode":"1000000086","certLastCode":"1000000088","grantUserId":"0a788c6e-1569-4a27-84d9-ad579c4682a0","grantUserName":"卓国忠","createTime":"2021-06-16 16:22:35"},{"id":"52cd7d2c6193ffbed17cc4872db914a8","areaCode":"500127001","areaName":"来凤街道璧城街道","grantNum":5,"certBeginCode":"1000000081","certLastCode":"1000000085","grantUserId":"13a7fd75a7fa45748ff927fd71563e7d","grantUserName":"甄苗苗","createTime":"2021-06-13 14:17:56"}],"total":22,"size":10,"current":1,"orders":[],"optimizeCountSql":true,"hitCount":false,"searchCount":true,"pages":3},"msg":"执行成功"}`)
	})
	//24. 分页查询二维码列表   并发400       原地址： http://cqxmsy.cloud/api/afm-qrcode-scanning/qrcodeMgr/selectAll
	r.GET("api/afm-qrcode-scanning/qrcodeMgr/selectAll", func(c *gin.Context) {
		c.String(http.StatusOK, `{"code":0,"data":{"records":[{"id":"25633ca1eccd22a5c46b81349eb0873d","areaCode":"500127103","areaName":"河边镇","grantNum":3,"certBeginCode":"1000000086","certLastCode":"1000000088","grantUserId":"0a788c6e-1569-4a27-84d9-ad579c4682a0","grantUserName":"卓国忠","createTime":"2021-06-16 16:22:35"},{"id":"52cd7d2c6193ffbed17cc4872db914a8","areaCode":"500127001","areaName":"来凤街道璧城街道","grantNum":5,"certBeginCode":"1000000081","certLastCode":"1000000085","grantUserId":"13a7fd75a7fa45748ff927fd71563e7d","grantUserName":"甄苗苗","createTime":"2021-06-13 14:17:56"},{"id":"c65c4ce9081ad2212528b506b4826171","areaCode":"500226004","areaName":"双河街道","grantNum":5,"certBeginCode":"1000000076","certLastCode":"1000000080","grantUserId":"13a7fd75a7fa45748ff927fd71563e7d","grantUserName":"甄苗苗","createTime":"2021-06-12 18:25:07"}],"total":22,"size":3,"current":1,"orders":[],"optimizeCountSql":true,"hitCount":false,"searchCount":true,"pages":3},"msg":"执行成功"}`)
	})

	//25. 码上办事已完成列表    并发1600     原地址： http://cqxmsy.cloud/api/afm-qrcode-scanning/waitForMatter/queryFinishedList?changId=7880a91621f348f885e919a22309f594&current=0&size=10&userId=dc8e8b15-44cc-48d2-952f-d0bdf12e6cd1
	r.GET("api/afm-qrcode-scanning/waitForMatter/queryFinishedList", func(c *gin.Context) {
		c.String(http.StatusOK, `{"code":0,"msg":"操作成功","data":{"total":1,"data":[{"scity_id":"50","matchendtime":"2021-05-31 23:59:00.0","xunjian_name":"投入品巡检","serviceobj_id":"7880a91621f348f885e919a22309f594","scity_name":"重庆市","farmer_she_name":"四面山村5社","cun_id":"500127001200","table_name":"breed_work_setting_task_202106","xqzhongl_name":"肉鸡","zhen_id":"500127001","qu_name":"璧山区","xqzhongl_id":"94af9574-af78-4684-a461-31cfb22a83ba","matchstarttime":"2020-12-06","year_group":"2021-06","ct_time":"2021-06-13 12:15:55","qu_id":"500127","zhen_name":"璧城街道","xunjian_id":"0bc8f76fd5644bb48036c36936e383cf","fuze_name":"舒廷兴","serviceobj_name":"李存义肉鸡养殖场","cun_name":"四面山村","farmer_she":"02462a93a46011e592b1c81f66b90cce"}]}}`)
	})
	//26. 码上办事申报类列表   并发1600       原地址： http://cqxmsy.cloud/api/afm-qrcode-scanning/waitForMatter/querySplitWaitForList
	r.POST("api/afm-qrcode-scanning/waitForMatter/querySplitWaitForList", func(c *gin.Context) {
		c.String(http.StatusOK, `{"code":0,"msg":"操作成功","data":{"total":1,"data":[{"obj_id":"0017edc7c0074e3b9109b4183c2b205b","work_isdone":2,"work_endtime":"2021-07-01","work_type":"f010bb93-f85c-4b4f-81a6-c5e98c466d7f","finish_flag":0,"work_typename":"免疫申报","apply_form_id":"75559","object_id":"e70c2ed4123542fda2fb8850ed2efa1e","table_name":"202107","apply_form_name":"免疫申报单","matchstarttime":"20210701000000","object_name":"徐廷均肉鸡养殖场(徐廷均)","apply_form_key":"1","remain_days":0,"animalName":"","schedule_id":23158}]}}`)
	})

	/**
	畜牧技术推广体系系统

	TODO: 接口
	1. 产业规模地图
	2. 种畜禽整体情况统计
	3. 商品畜禽数量统计地图
	4. 现畜禽存栏规模
	5. 仔猪阉割服务处理状况
	6. 无害化服务动物种类数量统计
	7. 查询免疫申报地区信息 APP
	8. 人工受精申报列表查询  APP



	*/

	// 子系统1：种畜禽管理业务功能设计

	//1. 产业规模地图     并发400    原地址： http://cqxmsy.cloud/api/afm-analysis-livestock/scale/industryScaleMap/500127
	r.GET("api/afm-analysis-livestock/scale/industryScaleMap/500127", func(c *gin.Context) {
		c.String(http.StatusOK, `{"code":0,"msg":"操作成功","data":{"density":[{"num":0.0,"areacode":"500127001"},{"num":0.0,"areacode":"500127002"},{"num":0.0,"areacode":"500127003"},{"num":3120.0,"areacode":"500127004"},{"num":0.0,"areacode":"500127007"},{"num":2640.0,"areacode":"500127008"},{"num":0.0,"areacode":"500127100"},{"num":0.0,"areacode":"500127101"},{"num":368.0,"areacode":"500127103"},{"num":0.0,"areacode":"500127104"},{"num":0.0,"areacode":"500127105"},{"num":0.0,"areacode":"500127106"},"point":[{"id":"4472","areaCode":"500127004200","areaName":null,"objId":"523c091233f711e8a108c81f66b90cce","objName":"重庆广东温氏家禽有限公司来凤种鸡场","zhongchangId":null,"zhongchangName":null,"zhongchangTypeId":null,"yangzhifsId":null,"yangzhifsName":null,"animalId":"684a5930-2b85-49b0-99a8-fec85f03e944","animalName":"蛋鸡","changnianCunlanNum":78000,"shengzhuCunlanNum":3120.0,"longitude":"106.219784","latitude":"29.420196","scity":"50","quId":"500127","zhenId":"500127004","cunId":null},{"id":"14755","areaCode":"500127008200","areaName":null,"objId":"7438f4b33ca411e8a108c81f66b90cce","objName":"何安华蛋鸡场","zhongchangId":null,"zhongchangName":null,"zhongchangTypeId":null,"yangzhifsId":null,"yangzhifsName":null,"animalId":"684a5930-2b85-49b0-99a8-fec85f03e944","animalName":"蛋鸡","changnianCunlanNum":32000,"shengzhuCunlanNum":1280.0,"longitude":"106.254820738","latitude":"29.6945550520001","scity":"50","quId":"500127","zhenId":"500127008","cunId":null}]}}`)
	})

	//2. 种畜禽整体情况统计  并发400   原地址： http://cqxmsy.cloud/api/afm-analysis-livestock/scale/overallSituation/50
	r.GET("api/afm-analysis-livestock/scale/overallSituation/50", func(c *gin.Context) {
		c.String(http.StatusOK, `{"code":0,"msg":"操作成功","data":{"id":"1346271285002825730","areaCode":"50","areaName":"重庆","shengzhuCunlanNum":6259912,"pigCunlanNum":229748,"rouniuCunlanNum":882,"nainiuCunlanNum":1830,"yangCunlanNum":7865,"tuziCunlanNum":37110,"roujiCunlanNum":2501610,"danjiCunlanNum":3346497,"yaCunlanNum":120737,"createTime":"2021-01-05","lastupdatetime":"2021-02-22T06:41:03.000+00:00","ecunlanNum":13633}}`)
	})
	//子系统2：生产监测业务功能设计

	//3. 商品畜禽数量统计地图   并发400  	原地址： http://cqxmsy.cloud/api/afm-analysis-produce/dynamicProductionAnalysis/produceMap/500127
	r.GET("api/afm-analysis-produce/dynamicProductionAnalysis/produceMap/500127", func(c *gin.Context) {
		c.String(http.StatusOK, `{"code":0,"msg":"操作成功","data":[{"id":"1347803888521596929","areaCode":"500127200","areaName":"健龙镇","objId":"","objName":"","subjectId":null,"subjectName":null,"userId":null,"userName":null,"phone":null,"animalId":null,"animalName":null,"changnianCunlanNum":0,"longitude":"106.189210","latitude":"29.357819","createTime":"2021-01-09 03:14:20","lastupdatetime":"2021-01-09T07:13:07.000+00:00"},{"id":"1347803887313637377","areaCode":"500127103","areaName":"河边镇","objId":"","objName":"","subjectId":null,"subjectName":null,"userId":null,"userName":null,"phone":null,"animalId":null,"animalName":"生产","changnianCunlanNum":0,"longitude":"106.199191","latitude":"29.652806","createTime":"2021-01-09 03:14:20","lastupdatetime":"2021-01-09T07:13:07.000+00:00"}]}`)
	})

	//4. 现畜禽存栏规模   并发400  	原地址： http://cqxmsy.cloud/api/afm-analysis-produce/industryScale/existingInventory/500127/猪
	r.GET("api/afm-analysis-produce/industryScale/existingInventory/500127/猪", func(c *gin.Context) {
		c.String(http.StatusOK, `{"code":0,"msg":"操作成功","data":{"title":"现畜禽存栏规模","label":{"name":"类型","unit":"","data":["总数","<20","20-200","200-500","500-1000","1000-3000","≥3000"]},"value":[{"name":"数量","unit":"","data":[233,79.0,128.0,17.0,6.0,3.0,0.0]}]}}`)
	})

	// 子系统3：服务监测业务功能设计

	// 5. 仔猪阉割服务处理状况    并发400  	原地址： http://cqxmsy.cloud/api/afm-analysis-service/breedPigletsCastrated/handl eStatus/500127/2020-01-30/2020-06-30
	r.GET("api/afm-analysis-service/breedPigletsCastrated/handleStatus/500127/2020-01-30/2020-06-30", func(c *gin.Context) {
		c.String(http.StatusOK, `{"code":0,"msg":"操作成功","data":{"title":"仔猪阉割服务处理状况","label":{"name":"状况种类","unit":"","data":["已执行数量","未执行数量","驳回数量"]},"value":[{"name":"数量","unit":"件","data":[91,14,6]}]}}`)
	})
	//6.无害化服务动物种类数量统计     并发400  	原地址： http://cqxmsy.cloud/api/afm-analysis-service/breedHarmless/selectAnimalTypeNum/500127/2020-01-30/2020-06-30
	r.GET("api/afm-analysis-service/breedHarmless/selectAnimalTypeNum/500127/2020-01-30/2020-06-30", func(c *gin.Context) {
		c.String(http.StatusOK, `{"code":0,"msg":"操作成功","data":[{"total":"7","animalName":"猪"},{"total":"0","animalName":"羊"},{"total":"0","animalName":"兔"},{"total":"0","animalName":"牛"},{"total":"0","animalName":"鸡"},{"total":"0","animalName":"肉牛"},{"total":"0","animalName":"奶牛"},{"total":"0","animalName":"肉鸡"},{"total":"0","animalName":"蛋鸡"},{"total":"0","animalName":"鸭"},{"total":"0","animalName":"鹅"}]}`)
	})
	//7. 查询免疫申报地区信息   APP     并发3200  	原地址： http://cqxmsy.cloud/AFMIS/noencrypt/app/log/v1.2/queryMianYiAreaForFarmer?v=6
	r.POST("AFMIS/noencrypt/app/log/v1.2/queryMianYiAreaForFarmer", func(c *gin.Context) {
		c.String(http.StatusOK, `{"data":{"user_address":"璧山区璧城街道马家桥村7社","user_qucode":"500127","user_quname":"璧山区","user_zhencode":"500127001","user_zhenname":"璧城街道","user_cuncode":"500127001201","user_cunname":"马家桥村","user_sheid":"02464852a46011e592b1c81f66b90cce","user_shename":"马家桥村7社"},"code":"050000","desc":"流程正确"}`)
	})
	//8. 人工受精申报列表查询    APP       并发3200       原地址： http://cqxmsy.cloud/AFMIS/noencrypt/form/rgsj/queryRgsjShenBaoList?v=6
	r.POST("AFMIS/noencrypt/form/rgsj/queryRgsjShenBaoList", func(c *gin.Context) {
		c.String(http.StatusOK, `{"data":[{"farmcheck_id":"40037a92a85887889ac023c980f15766","chang_name":"0346c2b728a4470ebc6d535353c7f10e~陈嗣元","create_time":"2021-03-04 00:00:00"},{"farmcheck_id":"33e4a44855368e662b459cd32091cf73","chang_name":"b980005c4697430fbd443f0e0a6e9e44~杨如华","create_time":"2021-02-28 00:00:00"},{"farmcheck_id":"ca5d7a84f4647cacdd24ffc4bb0e7a61","chang_name":"0ebf3c2ae8524148b60eddaebc9ca41d~潘宏文","create_time":"2021-02-26 00:00:00"}],"code":"050000","desc":"流程正确"}`)
	})

	/**
	    疫控中心体系管理系统
	    TODO: 接口
		1. 不同类型养殖场数量统计
	    2. 规范消毒药品使用量
	    3. 查询库存信息列表
	    4. 新增计划制定数据

	*/

	// 子系统1：动物疫病预防控制预警预报信息管理系统业务功能设计

	//1. 不同类型养殖场数量统计    并发212    原地址： http://cqxmsy.cloud/cloudnative/api/afm-disease-warning/animalProduction/differentKinds/50/猪
	r.GET("cloudnative/api/afm-disease-warning/animalProduction/differentKinds/50/猪", func(c *gin.Context) {
		c.String(http.StatusOK, `{"code":0,"msg":"操作成功","data":{"title":"不同类型规模养殖场数量统计","label":{"name":"种类","unit":"","data":["猪","肉牛","奶牛","羊","兔","肉鸡","蛋鸡","鸭","鹅"]},"value":[{"name":"数量","unit":"头/只/羽","data":[18504,4229,44,4196,329,1792,1362,403,111]}]}}`)
	})

	//2. 规范消毒药品使用量     并发212    原地址：      http://cqxmsy.cloud/cloudnative/api/afm-disease-warning/riskWarning/disinfectantsUsage/50/all
	r.GET("cloudnative/api/afm-disease-warning/riskWarning/disinfectantsUsage/50/all", func(c *gin.Context) {
		c.String(http.StatusOK, `{"code":0,"msg":"操作成功","data":{"title":"规范消毒药品使用量","label":{"name":"","unit":"","data":["生物制品","中药","化学药品","抗生素","生化药品","其他类"]},"value":[{"name":"比例","unit":"%","data":[20.00,10.00,39.99,10.00,10.00,10.00]}]}}`)
	})

	//子系统2：动物防疫物资监督管理系统业务功能设计

	//3. 查询库存信息列表      并发438    原地址： ttp://cqxmsy.cloud/cloudnative/api/afm-material-supervision/materialStock/queryKuCunList?areaCode=50&current=1&size=15&materialTypeId=7fd0ea2b5522426b89b6fa97809cb178&materialId=b4dc70555a284223b36fbad63f6f2619
	r.GET("cloudnative/api/afm-material-supervision/materialStock/queryKuCunList", func(c *gin.Context) {
		c.String(http.StatusOK, `{"code":0,"data":{"records":[{"id":"055109b4949c4137912ff61642fb4298","stockNum":328.0,"stockMoney":984.0,"areaCode":"50","deptId":"2a1eeecc-ef57-4adc-a24f-9e94fbc47a05","deptName":"重庆市动物疫病预防控制中心","areaName":"重庆市","materialWarehouseId":null,"materialWarehouseName":null,"materialTypeId":"7fd0ea2b5522426b89b6fa97809cb178","materialTypeName":"重大动物疫病疫苗","materialId":"b4dc70555a284223b36fbad63f6f2619","materialName":"猪瘟疫苗","specifications":"50ml","unitName":"万毫升","productionEnterpriseId":"aa4edf1e375f4d228fa4dd84808c9645","productionEnterpriseName":"长生生物","productionBatch":"","expirationDate":"2021-06-30","price":"3.0","createUserId":"5eeafe3e-b067-4f15-a2f6-3c64dba75c2c","createUserName":"曹芸","createTime":"2021-06-08 15:24:43","bigType":"1","remainDays":"-9","status":"3"}],"total":1,"size":15,"current":1,"orders":[],"optimizeCountSql":true,"hitCount":false,"searchCount":true,"pages":1},"msg":"执行成功"}`)
	})

	//4. 新增计划制定数据    并发438    原地址：http://cqxmsy.cloud/cloudnative/api/afm-material-supervision/planFormulate
	r.POST("cloudnative/api/afm-material-supervision/planFormulate", func(c *gin.Context) {
		c.String(http.StatusOK, `{"code":0,"data":true,"msg":"执行成功"}`)
	})

	/****** 1期接口*******/

	//一场一档”业务系统续建及
	//畜牧生产直报

	//1. (1)	查询屠宰场一场一档采集信息列表

	r.POST("afm-is-record-service/web/farmcheck/queryList", func(c *gin.Context) {
		c.String(http.StatusOK, `{"code":"0000","desc":"流程正确","data":{"dataList":[{"id":"07d47536854444f6a3f7877861a4c284","chang_name":"中兴屠宰场","sprov_name":"","scity_name":"重庆市","qu_name":"璧山区","zhen_name":"青杠街道","cun_name":"","she_name":"","address":"","fz_username":"江昌良","fz_user_phone":"9.380426579e+011","cj_username":"","cj_time":"2020-10-25","create_time":"Nov 14, 2020 4:28:12 PM"},{"id":"36dbd260-0a27-4319-943e-1026f7a78b13","chang_name":"健龙乡龙江屠场","sprov_name":"","scity_name":"重庆市","qu_name":"璧山区","zhen_name":"健龙镇","cun_name":"","she_name":"","address":"","fz_username":"刘继万","fz_user_phone":"13618321749","cj_username":"","cj_time":"2020-10-24","create_time":"Nov 14, 2020 4:28:12 PM"},{"id":"9490bf5c-ec81-42ba-bbd6-05ff2335df2d","chang_name":"八塘食品公司八塘屠宰厂（生猪监测）","sprov_name":"","scity_name":"重庆市","qu_name":"璧山区","zhen_name":"八塘镇","cun_name":"三元村","she_name":"","address":"","fz_username":"杨晓西","fz_user_phone":"13036304733","cj_username":"","cj_time":"2020-10-23","create_time":"Nov 14, 2020 4:28:12 PM"},{"id":"a0b3d2fc-0706-4852-96e2-97bf4a8cb73e","chang_name":"璧山区大兴食品公司丹凤屠宰场","sprov_name":"","scity_name":"重庆市","qu_name":"璧山区","zhen_name":"大兴镇","cun_name":"油田社区","she_name":"","address":"","fz_username":"简洪","fz_user_phone":"2.2909632589e+011","cj_username":"","cj_time":"2020-10-22","create_time":"Nov 14, 2020 4:28:12 PM"},{"id":"6a4cd80f-6697-457f-8324-ed0174790d50","chang_name":"重庆市璧山区健龙镇龙江屠宰场","sprov_name":"","scity_name":"重庆市","qu_name":"璧山区","zhen_name":"健龙镇","cun_name":"龙江社区","she_name":"","address":"","fz_username":"夏忠","fz_user_phone":"","cj_username":"","cj_time":"2020-10-21","create_time":"Nov 14, 2020 4:28:12 PM"}],"total":33}}`)
	})
	//查询种畜禽直报数据列表
	r.POST("zhongxuqinZhibaoAction!queryZhongxuqinZhibaoListInfo.action", func(c *gin.Context) {
		c.String(http.StatusOK, `{"rows":[{"animal_name":"猪","chang_name":"金满凼种猪场","cun_name":"三元村","cunlan_num":82,"fuze_person_name":"潘文平","fuze_person_phone":"13527407288","id":"555bac48253142f6b196187ea0141286","is_wuhaihua":0,"page":1,"qu_name":"合川区","queryWhere":"","report_time":"2021-05-02","rows":15,"scity_name":"重庆市","sprov_name":"","zhen_name":"钱塘镇","zhongchang_daibie_name":"父母代","zhongchang_name":"种猪场"},{"animal_name":"猪","chang_name":"阮志友生猪养殖场","cun_name":"新花村","cunlan_num":150,"fuze_person_name":"阮志友","fuze_person_phone":"13132307107","id":"a263a84242d0481a9e45760f904bbc43","is_wuhaihua":0,"page":1,"qu_name":"黔江区","queryWhere":"","report_time":"2021-04-25","rows":15,"scity_name":"重庆市","sprov_name":"","zhen_name":"黎水镇","zhongchang_daibie_name":"@原种场@","zhongchang_name":"种猪场"},{"animal_name":"","chang_name":"段成超养鸭场","cun_name":"万宝村","cunlan_num":0,"fuze_person_name":"段成超","fuze_person_phone":"18725956456","id":"5d5996ee16194c2b99836182efe7b9e1","is_wuhaihua":0,"page":1,"qu_name":"荣昌区","queryWhere":"","report_time":"2020-11-22","rows":15,"scity_name":"重庆市","sprov_name":"","zhen_name":"直升镇","zhongchang_daibie_name":"父母代","zhongchang_name":"蛋鸭孵化场"},{"animal_name":"蛋鸡","chang_name":"江宗学养鸡场","cun_name":"四维村","cunlan_num":2758,"fuze_person_name":"江宗学","fuze_person_phone":"13618224040","id":"847625a0d7034207ad0925f2a2acc6ba","is_wuhaihua":0,"page":1,"qu_name":"璧山区","queryWhere":"","report_time":"2020-08-30","rows":15,"scity_name":"重庆市","zhen_name":"大路街道","zhongchang_daibie_name":"商品代","zhongchang_name":"种蛋鸡场"},{"animal_name":"蛋鸡","chang_name":"江宗学养鸡场","cun_name":"四维村","cunlan_num":2756,"fuze_person_name":"江宗学","fuze_person_phone":"13618224040","id":"e9c4359d546a4475bf9977d5a5fd045f","is_wuhaihua":0,"page":1,"qu_name":"璧山区","queryWhere":"","report_time":"2020-08-29","rows":15,"scity_name":"重庆市","zhen_name":"大路街道","zhongchang_daibie_name":"商品代","zhongchang_name":"种蛋鸡场"}],"total":13}`)
	})
	//查询场和负责人信息
	r.POST("afm-is-record-service/noencrypt/yikong/queryChangAndFuzerenInfo", func(c *gin.Context) {
		c.String(http.StatusOK, `{"code":"0000","desc":"流程正确","data":[{"chang_id":"c298ec3c81a74e5c980d8bb3bb3ea56a","chang_name":"璧山区群森黑山羊养殖场","chang_fz_name":"程文光","chang_fz_idcard":"510232197412282854","chang_phone":"13628300181"},{"chang_id":"648fdd540f25438b93ae0b7276462e5d","chang_name":"古焕伍养鸡场","chang_fz_name":"古焕伍","chang_fz_idcard":"510232197601172830","chang_phone":"17723939081"}]}`)
	})

	//(2)	生猪价格采集完成列表查询
	r.POST("afm-is-record-service/noencrypt/pigprice/queryPriceList", func(c *gin.Context) {
		c.String(http.StatusOK, `{"code":"0000","desc":"流程正确","data":{"total":8,"dataList":[{"year_moth":"2020年03月","breedPrices":[{"id":"166","xian_name":"璧山区","zhen_id":"500127007","zhen_name":"丁家街道","ct_time":"2020-03-17 18:15:37","year_group":"2020-03","table_name":"生猪价格采集","is_edit":"0"},{"id":"59","xian_name":"璧山区","zhen_id":"500127007","zhen_name":"丁家街道","ct_time":"2020-03-17 18:15:19","year_group":"2020-03","table_name":"生猪价格采集","is_edit":"0"},{"id":"68","xian_name":"璧山区","zhen_id":"500127007","zhen_name":"丁家街道","ct_time":"2020-03-17 18:15:19","year_group":"2020-03","table_name":"生猪价格采集","is_edit":"0"},{"id":"56","xian_name":"璧山区","zhen_id":"500127007","zhen_name":"丁家街道","ct_time":"2020-03-17 18:15:18","year_group":"2020-03","table_name":"生猪价格采集","is_edit":"0"},{"id":"57","xian_name":"璧山区","zhen_id":"500127007","zhen_name":"丁家街道","ct_time":"2020-03-17 18:15:18","year_group":"2020-03","table_name":"生猪价格采集","is_edit":"0"}]}]}}`)
	})

	///多客户端系统管理平台改造与升级并发需求

	//1 1.	机构首页模版管理列表
	r.POST("appBaseTempAction!queryDeptDataList.action", func(c *gin.Context) {
		c.String(http.StatusOK, `{"rows":[{"deptid":"0c320dbd-b722-4244-8ffd-b81933e796eb","deptname":"北碚区农业委员会","id":"08e3f2a9fb5d4a6a9a4f580866382480","page":1,"queryWhere":"","rows":15,"status":1},{"deptid":"c09417e3-8c45-4442-84ea-a3e77aac3ca3","deptname":"重庆市畜牧技术推广总站","id":"027b69a7ed054c6f85ca99c47bfe6292","page":1,"queryWhere":"","rows":15,"status":1},{"deptid":"844e1f7c-688a-4430-a126-8a1291b23773","deptname":"重庆市潼南区农业农村委员会","id":"ee44cd40e80b11eaae91fa163ed6d39c","page":1,"queryWhere":"","rows":15,"status":1},{"deptid":"d00f0d38-84ed-4886-8d36-f86148f11c65","deptname":"重庆市农业综合行政执法总队","id":"84654c250890481697579d489dfd6005","page":1,"queryWhere":"","rows":15,"status":1},{"deptid":"b39f8975-a984-4370-a403-1559a65e4e6f","deptname":"长寿区畜牧兽医局","id":"0ce77455e80a11eaae91fa163ed6d39c","page":1,"queryWhere":"","rows":15,"status":1},{"deptid":"ba71c760-264b-4b88-a595-561d1eeb1103","deptname":"南岸区农业委员会","id":"1064c3a1e80911eaae91fa163ed6d39c","page":1,"queryWhere":"","rows":15,"status":1},{"deptid":"0bc1a19f-7af4-4497-91c5-f87aee867e36","deptname":"梁平区农业委员会","id":"c6a554a9bb3240899f0dcede95115369","page":1,"queryWhere":"","rows":15,"status":1},{"deptid":"4af54db2-df4a-4ea3-aaf3-d64b3be50770","deptname":"云阳县畜牧兽医局","id":"5a3c5c0be80f11eaae91fa163ed6d39c","page":1,"queryWhere":"","rows":15,"status":1},{"deptid":"f2f65809-97aa-4646-ba43-8f3ecc79317f","deptname":"巴南区农业委员会","id":"c647abe5e80911eaae91fa163ed6d39c","page":1,"queryWhere":"","rows":15,"status":1},{"deptid":"22fc05f3-48bc-4f9a-aaab-5fa8871e6fa6","deptname":"永川区农业委员会","id":"84a31ef765e547559330f7efffd8eca8","page":1,"queryWhere":"","rows":15,"status":1},{"deptid":"ec6e138f-bd6c-49a6-b462-3b4dc9fc03fe","deptname":"南川区动物疫病防控中心","id":"3936cf2107b545bcae584b5cac7b03bd","page":1,"queryWhere":"","rows":15,"status":1},{"deptid":"cfb30de9-a797-4d94-9750-f89e012c2510","deptname":"奉节县农业委员会","id":"3d022adb0e0e42e09921bf3a51be2784","page":1,"queryWhere":"","rows":15,"status":1},{"deptid":"8c122653-bf2f-4ca7-a523-325ae3adf8e5","deptname":"涪陵区畜牧兽医局","id":"52783751e80811eaae91fa163ed6d39c","page":1,"queryWhere":"","rows":15,"status":1},{"deptid":"6ebe7f35-ff51-4dbd-a9ef-dd27d72954a3","deptname":"南川区动物卫生监督所","id":"46dae12ccfb24dee87bd358bff547388","page":1,"queryWhere":"","rows":15,"status":1},{"deptid":"d242d5bb-7d75-429a-aba1-6502a8726c9c","deptname":"璧山区动物卫生监督所","id":"428fd755df0c4758acfd4c3645e2da5c","page":1,"queryWhere":"","rows":15,"status":1}],"total":52}`)

	})

	//2.	通用模版管理列表

	r.POST("appBaseTempAction!queryAppBaseTempList.action", func(c *gin.Context) {
		c.String(http.StatusOK, `{"rows":[{"banner_id":"109bf5c1461640f498e5a9c78184c12e","banner_type_id":"1","banner_type_name":"导航栏+用户信息","bg_img_url":"9b9226dea0534e60ac38a4989f9d60be","create_time":"2020-07-18 06:37:25.0","id":"54a32d9b0a7646eaa1976840d759b26d","is_default":"1","is_group":0,"lastupdatetime":"2021-08-02 11:13:00","page":1,"queryWhere":"","rows":15,"style_bg_color_code":"#FFFFFF","style_bg_color_id":"123","style_bg_color_type":2,"style_column":4,"style_font_color_code":"#76A846","style_font_color_id":"1","style_font_color_type":1,"style_round_corner":2,"style_text_color_code":"#262626","style_text_color_id":"2","style_type":2,"temp_name":"通用模板","title_text_color":"#262626","yingyong_style_id":"04935a0125d045379796242a1e416a40"},{"banner_id":"6231f09f6e534bf5ac6f32bb1f650c08","banner_type_id":"21","banner_type_name":"导航栏+图片背景","bg_img_url":"9b9226dea0534e60ac38a4989f9d60be","create_time":"2020-07-15 07:46:46.0","id":"6505710ffbeb4ef99cc2f0e361304116","img_id":"95da14b34a1f432690c3f8ac584d6f6e","is_default":"0","is_group":1,"lastupdatetime":"2021-07-28 11:24:15","page":1,"queryWhere":"","rows":15,"style_bg_color_code":"#FF7875,#1890FF,#84C241,#FA8C16,#722ED1,#13C2C2,#1890FF,#597EF7,#F759AB,#E6A512","style_bg_color_id":"125","style_bg_color_type":2,"style_column":3,"style_font_color_code":"#FFFFFF","style_font_color_id":"4","style_font_color_type":1,"style_round_corner":2,"style_text_color_code":"#262626","style_text_color_id":"2","style_type":2,"temp_name":"背景+图片","title_text_color":"#262626","yingyong_style_id":"9c02460fc566480d93176b4b67cee1c0"},{"banner_id":"109bf5c1461640f498e5a9c78184c12e","banner_type_id":"1","banner_type_name":"导航栏+用户信息","bg_img_url":"http://12316yun.net/mongo/images/446fdab72c8b44d8952a23650cc4fcf5.png","create_time":"2020-07-11 05:25:15.0","id":"f7f7c0447b134d81a0649443875b2ff2","is_default":"0","is_group":0,"lastupdatetime":"2021-07-23 17:56:54","page":1,"queryWhere":"","rows":15,"style_bg_color_code":"#FF7875,#1890FF,#84C241,#FA8C16,#722ED1,#13C2C2,#1890FF,#597EF7,#F759AB,#E6A512","style_bg_color_id":"125","style_bg_color_type":2,"style_column":4,"style_font_color_code":"#FFFFFF","style_font_color_id":"4","style_font_color_type":1,"style_round_corner":2,"style_text_color_code":"#262626","style_text_color_id":"2","style_type":2,"temp_name":"简约机构风","title_text_color":"#262626","yingyong_style_id":"7793575c895b401ea562141cdd015e19"}],"total":3}`)
	})

	//基础云平台及支撑系统搭建项目并发需求

	//查询云平台列表
	r.POST("platAction!queryPlatPage.action", func(c *gin.Context) {
		c.String(http.StatusOK, `{"rows":[{"areacode":",50,","areaname":"重庆市","belong_count":0,"client_desc":"","client_user_name":"","contractno":"15288843687","contractor":"卓国忠","dept_login_code":"12","dept_type":"manage","deptcode":"1009351","deptid":"e39cdff6-ea78-4dc4-ba8f-06e95104a891","deptlogo":"http://cqxmsy.cloud/mongo/images/78eff7e18b9c4f3283d2815be2942a0c.png","deptname":"重庆畜牧兽医管理服务云平台","dir_count":0,"display_order":1,"isShowBranch":"0","isShowUser":"0","is_auth":"1","is_branch":0,"is_del":"0","is_infocenter":"0","is_leader":"0","is_pass":"1","is_support":"0","manager":"0a788c6e-1569-4a27-84d9-ad579c4682a0","orgid":"e39cdff6-ea78-4dc4-ba8f-06e95104a891","page":0,"plat_code":"chongqingxumu","plat_loginname":"重庆畜牧","rows":0,"shortname":"重庆畜牧兽医云","spanPlat":"","treeOnlyUserCanCheck":false},{"areacode":",500127,","areaname":"璧山区","auditor":"卓国忠","belong_count":0,"client_desc":"","client_user_name":"","contractno":"15288843687","contractor":"卓国忠","deptcode":"1048914","deptid":"7b2fbf84125f43c0b526c7ab88c20dc0","deptlogo":"http://12316yun.net/mongo/images/69eefb429a664147b6c7b15864d86b70.jpg","deptname":"璧山区委·璧山区精准扶贫信息系统平台","dir_count":0,"display_order":2,"isShowBranch":"0","isShowUser":"0","is_auth":"0","is_branch":0,"is_del":"2","is_infocenter":"0","is_leader":"0","is_pass":"0","is_support":"0","manager":"0a788c6e-1569-4a27-84d9-ad579c4682a0","orgid":"7b2fbf84125f43c0b526c7ab88c20dc0","page":0,"plat_code":"plat_bsjzfp","plat_loginname":"","regtime":"2018-06-11 11:43:20","rows":0,"shortname":"","spanPlat":"","treeOnlyUserCanCheck":false},{"areacode":",500127,","areaname":"璧山区","auditor":"卓国忠","belong_count":0,"client_desc":"","client_user_name":"","contractno":"15288843687","contractor":"卓国忠","deptcode":"1058320","deptid":"090b930a1d854845b074dd5f34db95c1","deptlogo":"","deptname":"璧山乡村振兴产业转型数字化支撑平台","dir_count":0,"display_order":3,"isShowBranch":"0","isShowUser":"0","is_auth":"0","is_branch":0,"is_del":"0","is_infocenter":"0","is_leader":"0","is_pass":"0","is_support":"0","manager":"0a788c6e-1569-4a27-84d9-ad579c4682a0","orgid":"090b930a1d854845b074dd5f34db95c1","page":0,"plat_code":"plat_bsxczxcyzxszhzcpt","plat_loginname":"","regtime":"2020-03-12 16:17:31","rows":0,"shortname":"","spanPlat":"","treeOnlyUserCanCheck":false},{"areacode":",50,","areaname":"重庆市","belong_count":0,"client_desc":"","client_user_name":"","contractno":"15288843687","contractor":"卓国忠","dept_login_code":"48","dept_type":"manage","deptcode":"1011806","deptid":"94bb0812-10aa-49c9-9dca-eea2846debef","deptlogo":"http://12316yun.net:80/images/home/logo.png","deptname":"重庆市牛羊布病网格化管理平台","dir_count":0,"display_order":4,"isShowBranch":"0","isShowUser":"0","is_auth":"1","is_branch":0,"is_del":"0","is_infocenter":"0","is_leader":"0","is_pass":"1","is_support":"0","manager":"0a788c6e-1569-4a27-84d9-ad579c4682a0","orgid":"94bb0812-10aa-49c9-9dca-eea2846debef","page":0,"plat_code":"cq_niuyangbubing","plat_loginname":"重庆牛羊布病","rows":0,"shortname":"","treeOnlyUserCanCheck":false},{"areacode":",50,","areaname":"重庆市","auditor":"卓国忠","belong_count":0,"client_desc":"","client_user_name":"","contractno":"15288843687","contractor":"卓国忠","deptcode":"1053964","deptid":"0005011215f84bb69ba083d3d7afe1b1","deptlogo":"http://cqxmsy.cloud/mongo/images/3196c0b57b95430cb63d1b5e5fc93921.png","deptname":"重庆市畜禽基础档案管理平台","dir_count":0,"display_order":5,"isShowBranch":"0","isShowUser":"0","is_auth":"0","is_branch":0,"is_del":"0","is_infocenter":"0","is_leader":"0","is_pass":"0","is_support":"0","manager":"0a788c6e-1569-4a27-84d9-ad579c4682a0","orgid":"0005011215f84bb69ba083d3d7afe1b1","page":0,"plat_code":"plat_zqsxqjcdaglpt","plat_loginname":"","regtime":"2018-07-17 08:10:34","rows":0,"shortname":"","spanPlat":"","treeOnlyUserCanCheck":false},{"areacode":",50,","areaname":"重庆市","belong_count":0,"client_desc":"","client_user_name":"","contractno":"18253101513","dept_login_code":"16","dept_type":"manage","deptcode":"1010564","deptid":"be32bfc5-73a1-40cd-92f2-1edff49f5d2b","deptlogo":"http://12316yun.net:80/images/home/logo.png","deptname":"重庆进村入户农业云平台","dir_count":0,"display_order":6,"isShowBranch":"0","isShowUser":"0","is_auth":"1","is_branch":0,"is_del":"0","is_infocenter":"0","is_leader":"0","is_pass":"1","is_support":"0","manager":"b3ad2a18-a70a-445f-94b0-061c5f80fb01","orgid":"be32bfc5-73a1-40cd-92f2-1edff49f5d2b","page":0,"plat_code":"chongqingnongye","plat_loginname":"重庆农业云","rows":0,"shortname":"","spanPlat":"e39cdff6-ea78-4dc4-ba8f-06e95104a891","treeOnlyUserCanCheck":false},{"areacode":",500127,","areaname":"璧山区","auditor":"卓国忠","belong_count":0,"client_desc":"","client_user_name":"","contractno":"15288843687","contractor":"卓国忠","deptcode":"1058273","deptid":"80945cf832054a8e8f7850e236a1a132","deptlogo":"","deptname":"璧山清水鱼生态农业数字化平台","dir_count":0,"display_order":7,"isShowBranch":"0","isShowUser":"0","is_auth":"0","is_branch":0,"is_del":"0","is_infocenter":"0","is_leader":"0","is_pass":"0","is_support":"0","manager":"0a788c6e-1569-4a27-84d9-ad579c4682a0","orgid":"80945cf832054a8e8f7850e236a1a132","page":0,"plat_code":"plat_bsqsystnyszhpt","plat_loginname":"","regtime":"2019-09-16 13:40:11","rows":0,"shortname":"","spanPlat":"","treeOnlyUserCanCheck":false},{"areacode":",50,","areaname":"重庆市","auditor":"卓国忠","belong_count":0,"client_desc":"","client_user_name":"","contractno":"15288843687","contractor":"卓国忠","deptcode":"1057934","deptid":"d405e8219c0f42bebe92cfcc8871ba2b","deptlogo":"http://cqxmsy.cloud/mongo/images/ccbd5f832e654569a8f930ab7259a020.png","deptname":"重庆执法云平台","dir_count":0,"display_order":8,"isShowBranch":"0","isShowUser":"0","is_auth":"0","is_branch":0,"is_del":"0","is_infocenter":"0","is_leader":"0","is_pass":"0","is_support":"0","manager":"0a788c6e-1569-4a27-84d9-ad579c4682a0","orgid":"d405e8219c0f42bebe92cfcc8871ba2b","page":0,"plat_code":"plat_zqdjypt","plat_loginname":"","regtime":"2019-04-08 16:14:15","rows":0,"shortname":"","spanPlat":"","treeOnlyUserCanCheck":false},{"areacode":",50,","areaname":"重庆市","auditor":"卓国忠","belong_count":0,"client_desc":"","client_user_name":"","contractno":"15288843687","contractor":"卓国忠","deptcode":"1104067","deptid":"de09feeb65ff4589bd51ac0f42eda4cb","deptlogo":"","deptname":"重庆市粪污全程监管平台","dir_count":0,"display_order":9,"isShowBranch":"0","isShowUser":"0","is_auth":"0","is_branch":0,"is_del":"0","is_infocenter":"0","is_leader":"0","is_pass":"0","is_support":"0","manager":"0a788c6e-1569-4a27-84d9-ad579c4682a0","orgid":"de09feeb65ff4589bd51ac0f42eda4cb","page":0,"plat_code":"plat_zqsfwqcjgpt","plat_loginname":"","regtime":"2021-03-14 13:28:58","rows":0,"shortname":"","spanPlat":"","treeOnlyUserCanCheck":false},{"areacode":",500127,","areaname":"璧山区","belong_count":0,"contractno":"18253101513","dept_level":"4","dept_login_code":"6835","dept_type":"manage","deptcode":"1009907","deptid":"d2b7ff8e-598d-443f-997b-bd8a44b260ee","deptlogo":"http://12316yun.net:80/images/home/logo.png","deptname":"璧山农业管理信息服务云平台","dir_count":0,"display_order":10,"isShowBranch":"0","isShowUser":"0","is_auth":"1","is_branch":0,"is_del":"0","is_infocenter":"0","is_leader":"0","is_pass":"1","is_support":"0","manager":"b3ad2a18-a70a-445f-94b0-061c5f80fb01","orgid":"d2b7ff8e-598d-443f-997b-bd8a44b260ee","page":0,"plat_code":"bsnongye_yun","plat_loginname":"璧山农业云","rows":0,"treeOnlyUserCanCheck":false}],"total":10}`)
	})

	//2.	查询机构列表

	r.POST("platDepartmentAction!queryUnionDepartmentPage.action", func(c *gin.Context) {
		c.String(http.StatusOK, `{"rows":[{"auditor":"","belong_count":0,"contractno":"","contractor":"","dept_type":"","dept_type_name":"","deptname":"重庆市","dir_count":0,"dt_desc":"","dt_record_time":"","dt_user_name":"","isShowBranch":"0","isShowUser":"0","is_infocenter":"0","is_leader":"0","is_support":"0","page":0,"plat_name":"","regtime":"","rows":0,"tpl_name":"","treeOnlyUserCanCheck":false},{"areacode":"50","areaname":"重庆市","belong_count":0,"contractno":"13609403246","contractor":"范首君","dept_login_code":"9482","dept_type":"business_dept","dept_type_name":"农业行业主管机构直属单位","deptcode":"1000008","deptid":"2a1eeecc-ef57-4adc-a24f-9e94fbc47a05","deptname":"重庆市动物疫病预防控制中心","dir_count":0,"isShowBranch":"0","isShowUser":"0","is_infocenter":"0","is_leader":"0","is_support":"0","mainplat":"0","page":0,"plat_name":"重庆市牛羊布病网格化管理平台,重庆畜牧兽医管理服务云平台","regtime":"0000-00-00 00:00:00","rows":0,"status":"1","tpl_id":"50f34558287a4c02a7d159b793309385","tpl_name":"重庆市疫病防控中心模版","treeOnlyUserCanCheck":false},{"areacode":"50","areaname":"重庆市","belong_count":0,"contractor":"admin","dept_login_code":"7934","dept_type":"country_dept","dept_type_name":"农业行业主管机构","deptcode":"1000009","deptid":"2AF45BDE-5AC9-4C31-BFAE-3B7855E88F35","deptname":"重庆市农业农村委员会","dir_count":0,"isShowBranch":"0","isShowUser":"0","is_infocenter":"0","is_leader":"0","is_support":"0","mainplat":"1","page":0,"plat_name":"重庆畜牧兽医管理服务云平台,重庆进村入户农业云平台","regtime":"0000-00-00 00:00:00","rows":0,"status":"1","tpl_id":"81de0d62bd984a30b05c039030b34bf5","tpl_name":"重庆农业委员会模版","treeOnlyUserCanCheck":false},{"areacode":"50","areaname":"重庆市","belong_count":0,"contractno":"13896137456","contractor":"贺德华","dept_login_code":"922783","dept_type":"country_dept","dept_type_name":"农业行业主管机构","deptcode":"1000043","deptid":"c09417e3-8c45-4442-84ea-a3e77aac3ca3","deptname":"重庆市畜牧技术推广总站","dir_count":0,"isShowBranch":"0","isShowUser":"0","is_infocenter":"0","is_leader":"0","is_support":"0","mainplat":"1","page":0,"plat_name":"重庆畜牧兽医管理服务云平台","regtime":"0000-00-00 00:00:00","rows":0,"status":"1","tpl_id":"0d797d66779d46ca9786b0f6bbbda346","treeOnlyUserCanCheck":false},{"areacode":"50","areaname":"重庆市","belong_count":0,"contractno":"13452892367","contractor":"蒋云","dept_login_code":"3417","dept_type":"country_dept","dept_type_name":"农业行业主管机构","deptcode":"1000046","deptid":"d00f0d38-84ed-4886-8d36-f86148f11c65","deptname":"重庆市农业综合行政执法总队","dir_count":0,"isShowBranch":"0","isShowUser":"0","is_infocenter":"0","is_leader":"0","is_support":"0","mainplat":"1","page":0,"plat_name":"重庆畜牧兽医管理服务云平台,重庆执法云平台","regtime":"0000-00-00 00:00:00","rows":0,"status":"1","tpl_id":"0d797d66779d46ca9786b0f6bbbda346","treeOnlyUserCanCheck":false},{"auditor":"","belong_count":0,"contractno":"","contractor":"","dept_type":"","dept_type_name":"","deptname":"璧山区","dir_count":0,"dt_desc":"","dt_record_time":"","dt_user_name":"","isShowBranch":"0","isShowUser":"0","is_infocenter":"0","is_leader":"0","is_support":"0","page":0,"plat_name":"","regtime":"","rows":0,"tpl_name":"","treeOnlyUserCanCheck":false},{"areacode":"50012","areaname":"璧山区","belong_count":0,"contractno":"15263853085","contractor":"嘿嘿","dept_type":"breed_dept","dept_type_name":"养殖场","deptid":"afe45b5a-00ac-4d81-a229-895d31549389","deptname":"测试(嘿嘿)","dir_count":0,"isShowBranch":"0","isShowUser":"0","is_infocenter":"0","is_leader":"0","is_support":"0","mainplat":"1","page":0,"plat_name":"重庆畜牧兽医管理服务云平台","regtime":"0000-00-00 00:00:00","rows":0,"status":"1","treeOnlyUserCanCheck":false},{"auditor":"","belong_count":0,"contractno":"","contractor":"","dept_type":"","dept_type_name":"","deptname":"万州区","dir_count":0,"dt_desc":"","dt_record_time":"","dt_user_name":"","isShowBranch":"0","isShowUser":"0","is_infocenter":"0","is_leader":"0","is_support":"0","page":0,"plat_name":"","regtime":"","rows":0,"tpl_name":"","treeOnlyUserCanCheck":false},{"areacode":"500101","areaname":"万州区","belong_count":0,"contractno":"18996660232","contractor":"彭尚华","dept_login_code":"181377","dept_type":"country_dept","dept_type_name":"农业行业主管机构","deptcode":"1000006","deptid":"13b043ff-196a-43cd-9ea9-9cf405d6f58a","deptname":"万州区农业委员会","dir_count":0,"isShowBranch":"0","isShowUser":"0","is_infocenter":"0","is_leader":"0","is_support":"0","mainplat":"1","page":0,"plat_name":"重庆畜牧兽医管理服务云平台","regtime":"0000-00-00 00:00:00","rows":0,"status":"1","tpl_id":"e87e64ebde984f258d0cda52e281cc44","treeOnlyUserCanCheck":false},{"areacode":"500101","areaname":"万州区","auditor":"谢东升","belong_count":0,"contractno":"18996660232","contractor":"彭尚华","dept_login_code":"402","dept_type":"business_dept","dept_type_name":"农业行业主管机构直属单位","deptcode":"1018289","deptid":"a34df384-c697-45e7-84fe-b7fcd6f80ae6","deptname":"万州区畜牧站","dir_count":0,"isShowBranch":"0","isShowUser":"0","is_infocenter":"0","is_leader":"0","is_support":"0","mainplat":"1","page":0,"plat_name":"重庆畜牧兽医管理服务云平台","regtime":"2017-04-22 15:49:33","rows":0,"status":"1","tpl_id":"dc0a5b6915ae4ed69f0ee920b102f8fd","treeOnlyUserCanCheck":false},{"areacode":"500101","areaname":"万州区","auditor":"谢东升","belong_count":0,"contractno":"17723856018","contractor":"向之旭","dept_login_code":"580807","dept_type":"business_dept","dept_type_name":"农业行业主管机构直属单位","deptcode":"1027770","deptid":"bb02a966-bb2c-45a7-a9bf-114c5c09f71b","deptname":"万州区农业执法局","dir_count":0,"isShowBranch":"0","isShowUser":"0","is_infocenter":"0","is_leader":"0","is_support":"0","mainplat":"1","page":0,"plat_name":"重庆畜牧兽医管理服务云平台","regtime":"2017-05-25 10:12:03","rows":0,"status":"1","tpl_id":"dc0a5b6915ae4ed69f0ee920b102f8fd","treeOnlyUserCanCheck":false},{"auditor":"","belong_count":0,"contractno":"","contractor":"","dept_type":"","dept_type_name":"","deptname":"涪陵区","dir_count":0,"dt_desc":"","dt_record_time":"","dt_user_name":"","isShowBranch":"0","isShowUser":"0","is_infocenter":"0","is_leader":"0","is_support":"0","page":0,"plat_name":"","regtime":"","rows":0,"tpl_name":"","treeOnlyUserCanCheck":false},{"areacode":"500102","areaname":"涪陵区","auditor":"卢祎","belong_count":0,"contractno":"13609478199","contractor":"罗文健","dept_login_code":"413883","dept_type":"country_dept","dept_type_name":"农业行业主管机构","deptcode":"1001323","deptid":"8c122653-bf2f-4ca7-a523-325ae3adf8e5","deptname":"涪陵区畜牧兽医服务中心","dir_count":0,"isShowBranch":"0","isShowUser":"0","is_infocenter":"0","is_leader":"0","is_support":"0","mainplat":"1","page":0,"plat_name":"重庆畜牧兽医管理服务云平台","regtime":"2014-12-23 13:49:04","rows":0,"status":"1","tpl_id":"e87e64ebde984f258d0cda52e281cc44","treeOnlyUserCanCheck":false},{"areacode":"500102","areaname":"涪陵区","auditor":"卓国忠","belong_count":0,"contractno":"13983333183","contractor":"郑中福","dept_login_code":"61224","dept_type":"business_dept","dept_type_name":"农业行业主管机构直属单位","deptcode":"1027090","deptid":"9c62dc66-d209-4704-847b-546ea10795d1","deptname":"涪陵区阿兴记试验站","dir_count":0,"isShowBranch":"0","isShowUser":"0","is_infocenter":"0","is_leader":"0","is_support":"0","mainplat":"1","page":0,"plat_name":"重庆畜牧兽医管理服务云平台","regtime":"2017-05-20 11:46:57","rows":0,"status":"1","tpl_id":"cf44dd10b8544a1ab4c31641a5280e18","tpl_name":"畜牧技术推广类机构模板","treeOnlyUserCanCheck":false},{"auditor":"","belong_count":0,"contractno":"","contractor":"","dept_type":"","dept_type_name":"","deptname":"渝中区","dir_count":0,"dt_desc":"","dt_record_time":"","dt_user_name":"","isShowBranch":"0","isShowUser":"0","is_infocenter":"0","is_leader":"0","is_support":"0","page":0,"plat_name":"","regtime":"","rows":0,"tpl_name":"","treeOnlyUserCanCheck":false},{"areacode":"500103","areaname":"渝中区","auditor":"卓国忠","belong_count":0,"contractno":"13465463783","contractor":"李四","dept_login_code":"046803","dept_type":"china_dept","dept_type_name":"国家权力机构","deptcode":"1104126","deptid":"081bcf3b-998a-4004-96c5-6f28ae530c3d","deptname":"测试机构2编辑","dir_count":0,"isShowBranch":"0","isShowUser":"0","is_infocenter":"0","is_leader":"0","is_support":"0","mainplat":"1","page":0,"plat_name":"重庆畜牧兽医管理服务云平台","regtime":"2021-08-02 15:57:20","rows":0,"status":"0","treeOnlyUserCanCheck":false},{"auditor":"","belong_count":0,"contractno":"","contractor":"","dept_type":"","dept_type_name":"","deptname":"大渡口区","dir_count":0,"dt_desc":"","dt_record_time":"","dt_user_name":"","isShowBranch":"0","isShowUser":"0","is_infocenter":"0","is_leader":"0","is_support":"0","page":0,"plat_name":"","regtime":"","rows":0,"tpl_name":"","treeOnlyUserCanCheck":false},{"areacode":"500104","areaname":"大渡口区","auditor":"谢东升","belong_count":0,"contractno":"13667653398","contractor":"潘雪","dept_login_code":"709","dept_type":"business_dept","dept_type_name":"农业行业主管机构直属单位","deptcode":"1017935","deptid":"8f526822-e89d-44f4-acec-1dda70e1fa2c","deptname":"大渡口区动物卫生监督所","dir_count":0,"isShowBranch":"0","isShowUser":"0","is_infocenter":"0","is_leader":"0","is_support":"0","mainplat":"1","page":0,"plat_name":"重庆畜牧兽医管理服务云平台","regtime":"2017-04-17 11:11:05","rows":0,"status":"1","tpl_id":"dc0a5b6915ae4ed69f0ee920b102f8fd","treeOnlyUserCanCheck":false},{"areacode":"500104","areaname":"大渡口区","auditor":"谢东升","belong_count":0,"contractno":"","contractor":"","dept_login_code":"837","dept_type":"country_dept","dept_type_name":"农业行业主管机构","deptcode":"1016919","deptid":"bcb664f7-0e5c-4f8c-8258-79edf9bfe7e6","deptname":"大渡口区农业委员会","dir_count":0,"isShowBranch":"0","isShowUser":"0","is_infocenter":"0","is_leader":"0","is_support":"0","mainplat":"1","page":0,"plat_name":"重庆畜牧兽医管理服务云平台","regtime":"2017-04-11 14:57:21","rows":0,"status":"1","tpl_id":"e87e64ebde984f258d0cda52e281cc44","treeOnlyUserCanCheck":false},{"auditor":"","belong_count":0,"contractno":"","contractor":"","dept_type":"","dept_type_name":"","deptname":"江北区","dir_count":0,"dt_desc":"","dt_record_time":"","dt_user_name":"","isShowBranch":"0","isShowUser":"0","is_infocenter":"0","is_leader":"0","is_support":"0","page":0,"plat_name":"","regtime":"","rows":0,"tpl_name":"","treeOnlyUserCanCheck":false},{"areacode":"500105","areaname":"江北区","auditor":"谢东升","belong_count":0,"dept_login_code":"964679","dept_type":"country_dept","dept_type_name":"农业行业主管机构","deptcode":"1016936","deptid":"0c54c7f8-a879-4dce-a412-e04aa86c7729","deptname":"江北区农业委员会","dir_count":0,"isShowBranch":"0","isShowUser":"0","is_infocenter":"0","is_leader":"0","is_support":"0","mainplat":"1","page":0,"plat_name":"重庆畜牧兽医管理服务云平台","regtime":"2017-04-11 14:58:16","rows":0,"status":"1","tpl_id":"e87e64ebde984f258d0cda52e281cc44","treeOnlyUserCanCheck":false},{"areacode":"500105","areaname":"江北区","auditor":"谢东升","belong_count":0,"dept_login_code":"169222","dept_type":"business_dept","dept_type_name":"农业行业主管机构直属单位","deptcode":"1017964","deptid":"cf830ce6-e9ba-4c92-b7c6-4e2aa2c74b07","deptname":"江北区动物卫生监督所","dir_count":0,"isShowBranch":"0","isShowUser":"0","is_infocenter":"0","is_leader":"0","is_support":"0","mainplat":"1","page":0,"plat_name":"重庆畜牧兽医管理服务云平台","regtime":"2017-04-17 14:57:37","rows":0,"status":"1","tpl_id":"dc0a5b6915ae4ed69f0ee920b102f8fd","treeOnlyUserCanCheck":false}],"total":1081}`)
	})

	// 统一数据库设计改造与升级并发需求

	//1.	查询元数据数量
	r.POST("afm-is-metadata-service/web/meta/queryDataMetaNum", func(c *gin.Context) {
		c.String(http.StatusOK, `{"code":"0000","desc":"流程正确","data":{"dataColumnsCount":"21569","gonggongCount":"164","dataSourceCount":"25","dataTablesCount":"1091","yewuCount":"347","otherCount":"0","yingyongCount":"0","allnumCount":"533","jichuCount":"22"}}`)
	})

	//查询业务分类列表信息
	r.POST("afm-is-metadata-service/web/baseDataBusiness/fuzzySearch", func(c *gin.Context) {
		c.String(http.StatusOK, `{"code":"0000","desc":"流程正确","data":{"dataList":[{"parent_name":"基础业务数据","business_name":"test","businessCode":"test","create_time":"Jul 28, 2021 4:32:17 PM","parent_id":"6452e5feb334403486bb7c4c94e35e23","creator_id":"0a788c6e-1569-4a27-84d9-ad579c4682a0","creator_name":"卓国忠","business_id":"67b87510dee148d18ab221e36321f408","key":"67b87510dee148d18ab221e36321f408"},{"parent_name":"","business_name":"农民端应用","businessCode":"nongmin_yingyong","create_time":"Nov 14, 2019 6:02:27 PM","parent_id":"0","creator_id":"0a788c6e-1569-4a27-84d9-ad579c4682a0","remark":"农民端应用业务先关的数据信息","creator_name":"卓国忠","business_id":"df8f0d6dd4ae4128942d1e45ea99bec2","key":"df8f0d6dd4ae4128942d1e45ea99bec2"},{"parent_name":"","business_name":"非洲猪瘟","businessCode":"feizhou_zhuwen","create_time":"Nov 14, 2019 6:02:10 PM","parent_id":"0","creator_id":"0a788c6e-1569-4a27-84d9-ad579c4682a0","remark":"非洲猪瘟相关的业务数据信息","creator_name":"卓国忠","business_id":"a2bda95f7b9f4a539def02a47107bc8b","key":"a2bda95f7b9f4a539def02a47107bc8b"},{"parent_name":"","business_name":"微农信","businessCode":"wei_nongxin","create_time":"Nov 14, 2019 5:58:38 PM","parent_id":"0","creator_id":"0a788c6e-1569-4a27-84d9-ad579c4682a0","remark":"微农信的相关业务数据信息","creator_name":"卓国忠","business_id":"986aab1da82f4017b02d06744b43283a","key":"986aab1da82f4017b02d06744b43283a"},{"parent_name":"","business_name":"粪污收储","businessCode":"fenwu_shouchu","create_time":"Nov 14, 2019 5:58:23 PM","parent_id":"0","creator_id":"0a788c6e-1569-4a27-84d9-ad579c4682a0","remark":"粪污收储的业务数据信息","creator_name":"卓国忠","business_id":"0786a2a7682748b2af0eab285edf54f7","key":"0786a2a7682748b2af0eab285edf54f7"},{"parent_name":"","business_name":"云视频会议","businessCode":"yun_shipin_huiyi","create_time":"Nov 14, 2019 5:58:04 PM","parent_id":"0","creator_id":"0a788c6e-1569-4a27-84d9-ad579c4682a0","remark":"云视频会议的业务数据信息","creator_name":"卓国忠","business_id":"6e49e3688dbf455facbd5b8dd7dc5448","key":"6e49e3688dbf455facbd5b8dd7dc5448"},{"parent_name":"","business_name":"猪场ERP","businessCode":"pig_erp","create_time":"Nov 14, 2019 5:57:45 PM","parent_id":"0","creator_id":"0a788c6e-1569-4a27-84d9-ad579c4682a0","remark":"猪场ERP的数据信息","creator_name":"卓国忠","business_id":"ac195d6b29a14fecb66ddbddd9a5715d","key":"ac195d6b29a14fecb66ddbddd9a5715d"},{"parent_name":"","business_name":"工作日志","businessCode":"gongzuo_log","create_time":"Nov 14, 2019 5:57:27 PM","parent_id":"0","creator_id":"0a788c6e-1569-4a27-84d9-ad579c4682a0","remark":"工作日志、考勤、工作事项安排、一卡两制、码上办事等业务的数据信息","creator_name":"卓国忠","business_id":"8c4f7f282e8c46e799fed79850c7f21a","key":"8c4f7f282e8c46e799fed79850c7f21a"},{"parent_name":"","business_name":"云视频监控","businessCode":"yun_shipin_jiankong","create_time":"Nov 14, 2019 5:56:59 PM","parent_id":"0","creator_id":"0a788c6e-1569-4a27-84d9-ad579c4682a0","remark":"云视频监控中相关的业务数据信息","creator_name":"卓国忠","business_id":"7935a33c708843be8a19a2dc33fff427","key":"7935a33c708843be8a19a2dc33fff427"},{"parent_name":"","business_name":"元数据","businessCode":"metadata","create_time":"Nov 14, 2019 5:56:38 PM","parent_id":"0","creator_id":"0a788c6e-1569-4a27-84d9-ad579c4682a0","remark":"数据库元数据的信息","creator_name":"卓国忠","business_id":"3a356edd5d144feab171be074d37f460","key":"3a356edd5d144feab171be074d37f460"},{"parent_name":"","business_name":"APP管理","businessCode":"app_guanli","create_time":"Nov 14, 2019 5:56:08 PM","parent_id":"0","creator_id":"0a788c6e-1569-4a27-84d9-ad579c4682a0","remark":"APP管理、手机端首页维护等业务模块的数据信息","creator_name":"卓国忠","business_id":"f5506b2d5ca8462396e61bef900707f3","key":"f5506b2d5ca8462396e61bef900707f3"},{"parent_name":"","business_name":"机构网格关系","businessCode":"jigou_wangge","create_time":"Nov 14, 2019 5:55:37 PM","parent_id":"0","creator_id":"0a788c6e-1569-4a27-84d9-ad579c4682a0","remark":"机构网格关系的数据信息等","creator_name":"卓国忠","business_id":"e8b4c08a7e4949bd85c68a8a63709f45","key":"e8b4c08a7e4949bd85c68a8a63709f45"},{"parent_name":"","business_name":"一场一档","businessCode":"yichang_yidang","create_time":"Nov 14, 2019 6:03:02 PM","parent_id":"0","creator_id":"0a788c6e-1569-4a27-84d9-ad579c4682a0","creator_name":"卓国忠","business_id":"80f62fdce59a44b49f0126e654cfe774","key":"80f62fdce59a44b49f0126e654cfe774"},{"parent_name":"","business_name":"种畜禽采集","businessCode":"zhongxuqin_caiji","create_time":"Nov 14, 2019 6:01:52 PM","parent_id":"0","creator_id":"0a788c6e-1569-4a27-84d9-ad579c4682a0","creator_name":"卓国忠","business_id":"22a0db34e3864c1c82e0bac6e154a284","key":"22a0db34e3864c1c82e0bac6e154a284"},{"parent_name":"","business_name":"投入品","businessCode":"touru_pin","create_time":"Nov 14, 2019 6:01:32 PM","parent_id":"0","creator_id":"0a788c6e-1569-4a27-84d9-ad579c4682a0","creator_name":"卓国忠","business_id":"be74b3b4f4514309917278891a22d1a6","key":"be74b3b4f4514309917278891a22d1a6"}],"total":26}}`)
	})

	if port == defaultPort {
		fmt.Println("使用默认端口号" + defaultPort)
	} else {
		fmt.Println("使用传参端口号" + port)
	}
	r.Run(port)

}
